#This makefile is the build for the robotic marionette
#Here we compile the classes involved and make tests for them
#in the end we can comment out the tests for the final revision 

CC = g++	#the GNU g++ compiler
CFLAGS = -g -Wall

All: pwm_servo_test conrot_servo_test termio_controll_test humanoid_marionette_test

pwm_servo_test: pwm_servo.h pwm_servo.cpp pwm_servo_test.cpp 
	$(CC) $(CFLAGS) pwm_servo.cpp pwm_servo_test.cpp -o pwm_servo_test

conrot_servo_test: pwm_servo.h pwm_servo.cpp conrot_servo.h conrot_servo.cpp conrot_servo_test.cpp 
	$(CC) $(CFLAGS) conrot_servo.cpp pwm_servo.cpp conrot_servo_test.cpp -o conrot_servo_test

termio_controll_test: termio_controll_test.cpp
	$(CC) $(CFLAGS) termio_controll_test.cpp -o termio_controll_test

humanoid_marionette_test: humanoid_marionette_test.cpp
	$(CC) $(CFLAGS) humanoid_marionette_test.cpp humanoid_marionette.cpp humanoid_marionette_test.cpp -o humanoid_marionette_test
